/* *	Author: Vitaly Rozhkov *	vitaly.rozhkov@gmail.com *  http://bookvarius.livejournal.com **//*--------- interface functions ---------- */function DuplicateDocument(img) {	var origImg = (null != img) ? img : app.activeDocument;	var dupImg;	originalName = origImg.name;			origImg.duplicate(originalName, false);				dupImg = app.activeDocument;		origImg.close(SaveOptions.PROMPTTOSAVECHANGES);	app.activeDocument = dupImg;			return true;}